package com.hqyj.mall.xiaomimall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hqyj.mall.xiaomimall.entity.Users;

public interface UsersService extends IService<Users> {

    //用户登录
    public Users login(String identify,String password);
    //用户注册
    public boolean register(Users u) throws Exception;
    //根据用户ID查询单个用户
    public Users queryUsersByUid(Integer uid);

    //根据用户的标识符(手机，邮箱，用户名)查询单个用户
    public Users queryUsersByIdentify(String identify);

    //检查用户资料是否已经注册
    public boolean checkIsReg(String identify);

}
